export default {
  add (state, n) {
    state.count += n.a;
  },
  sub (state) {
    state.count--;
    state.count--;
  },
  put_sid (state, sid) { // 全局设置菜单列表
    this.state.sid = sid;
  },
  put_user (state, user) {
    this.state.user = user;
  },
  put_menus (state, menus) { // 全局设置菜单列表
    this.state.menus = menus;
  },
  put_active_top_menu (state, activeTopMenu) { // 当前选中的顶层菜单
    this.state.activeTopMenu = activeTopMenu;
  },
  put_iframe_url (state, iframeUrl) { // 当前iframe地址
    this.state.iframeUrl = iframeUrl;
  }
};
